package com.woniuxy.dao;

import com.woniuxy.pojo.User;
import org.apache.ibatis.annotations.Param;

/**
 * @Author 罗蔚
 * @Date 2022/3/26 16:05
 * @Description TODO
 */
public interface UserDao {
    //注册用户名
    public User findByUsername(String Username);

    //添加用户
    public void add(User user);

    //登录时
    public User findUsernameAndPassword(@Param("username")String username, @Param("password")String password);

    //输入原密码正确
    public String findPasswordByUid(int uid);
    //修改密码
    public void updatePassword(@Param("id")int uid, @Param("newpassword")String newpassword);
}
